/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Communication;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;


/**
 *
 * @author grevin
 */
public class CommunicaSystem {
    

     public static void main(String[] args) {
         File f = new File("A2B.txt");
         try {
             FileReader fr1= new FileReader("A2B.txt");
             FileReader fr2 = new FileReader("B2A.txt");
             FileWriter fw1= new FileWriter("A2B.txt");
             FileWriter fw2 = new FileWriter("B2A.txt");
             
            // f1.read();
           //  Communica A = new Communica(new BufferedWriter(fw1),new BufferedReader(fr2));
           //  Communica B = new Communica(new BufferedWriter(fw2), new BufferedReader(fr1));
         } catch (FileNotFoundException ex) {
             Logger.getLogger(CommunicaSystem.class.getName()).log(Level.SEVERE, null, ex);
         } catch (IOException ex) {
             Logger.getLogger(CommunicaSystem.class.getName()).log(Level.SEVERE, null, ex);
         }
               
        //Communica c = new Communica(null,null);
         
        
    }
}
